package org.example.shoppingsystem.service;

import org.example.shoppingsystem.dao.ProductDao;
import org.example.shoppingsystem.dao.ProductDaoImpl;
import org.example.shoppingsystem.model.Product;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImpl implements ProductService {
    private ProductDao productDao = new ProductDaoImpl();

    @Override
    public List<Product> findAllProducts() throws SQLException {
        return productDao.findAllProducts();
    }
}